package com.leadingsoft.pwxk.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

import com.leadingsoft.pwxk.dto.SearchDto;
import com.leadingsoft.pwxk.service.DIStatisticalService;

import io.swagger.annotations.Api;

@Api(description = "排放口统计")
@RestController
@RequestMapping("api/distatistical")
public class DIStatisticalController {

	@Autowired
	DIStatisticalService distatisticalService;

	@GetMapping
	@ResponseStatus(code = HttpStatus.OK)
	public Map<String, Double> getStatistical(SearchDto s) {
		return distatisticalService.getStatistical(s);
	}
}
